package mediator;

/**
 * 同事抽象类
 */
public abstract class Device {

    private final SmartHomeMediator mediator;

    public Device(SmartHomeMediator mediator) {
        this.mediator = mediator;
    }


    public void performAction(int command) {
        mediator.executeAction(command, this);
    }
}
